package com.system.entity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.io.Serializable;

@Component
@CrossOrigin
public class Deptment implements Serializable {
    private String deptName;

    private String deptPlace;

    public Deptment(String deptName, String deptPlace) {
        this.deptName = deptName;
        this.deptPlace = deptPlace;
    }

    public Deptment() {
        super();
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    public String getDeptPlace() {
        return deptPlace;
    }

    public void setDeptPlace(String deptPlace) {
        this.deptPlace = deptPlace == null ? null : deptPlace.trim();
    }
}
